<template>
  <div class="com">
    child components
    {{name}}{{age}}岁了
    <button
      type="button"
      name="button"
      v-on:click="$emit('patch')"
    >信息发送到父组件</button>
  </div>
</template>



<script>
export default {
  props: ['age'],
  data() {
    return {
      name: '我是黄柳淞，今年'
    }
  }
}
</script>

<style>
</style>
